
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/images/favicon.ico">

    <title>控制台 - 追求生活，追求梦想</title>

    <!-- Bootstrap core CSS -->
    <link href="http://lib.sinaapp.com/js/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/css/dashboard.css" rel="stylesheet">
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
        
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="http://lib.sinaapp.com/js/jquery/1.8.2/jquery.min.js"></script>
    <script src="http://lib.sinaapp.com/js/bootstrap/3.0.0/js/bootstrap.min.js"></script>
    <script src="/js/ie10-viewport-bug-workaround.js"></script>
    
        <!-- 配置文件 -->
    <script type="text/javascript" src="/ueditor/ueditor.config.min.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="/ueditor/ueditor.all.min.js"></script>
  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/edit">控制台</a>
          <a class="navbar-brand" href="/">首页</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">           
		        <li class="dropdown">
		          <a href="#" class="dropdown-toggle" data-toggle="dropdown">设置 <span class="caret"></span></a>
		          <ul class="dropdown-menu" role="menu">
		          	<li><a href="/edit/clear_cache/">清除缓存</a></li>
		            <li class="divider"></li>
		            <li><a href="/">回到首页</a></li>
		            <li class="divider"></li>
		            <li><a href="/logout/">登出</a></li>
		          </ul>
		        </li>
	            <li><a href="/logout/">登出</a></li>
          </ul>
          <form class="navbar-form navbar-right">
            <input type="text" class="form-control" placeholder="搜索...">
          </form>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row" style="margin-right: 0px;">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li {% ifequal active 'get_released_blog_list'%} class="active" {%endifequal%}><a href="/edit/get_released_blog_list">已发布文章</a></li>
            <li {% ifequal active 'get_draft_blog_list'%} class="active" {%endifequal%}><a href="/edit/get_draft_blog_list">草稿</a></li>
            <li {% ifequal active 'create_new_blog'%} class="active" {%endifequal%}><a href="/edit/create_new_blog">新建文章</a></li>
            
          </ul>
          <ul class="nav nav-sidebar">

           <li {% ifequal active 'get_classify_list'%} class="active" {%endifequal%}><a href="/edit/get_classify_list">分类管理</a></li>
           <li {% ifequal active 'get_message_list'%} class="active" {%endifequal%}><a href="/edit/get_message_list">留言管理</a></li>
           
          {% ifequal active 'get_edit_blog_r'%}  <li class="active" ><a href="#">编辑文章(已发布)</a></li>{%endifequal%}
          {% ifequal active 'get_edit_blog_d'%}  <li class="active" ><a href="#">编辑文章(草稿)</a></li>{%endifequal%}
          </ul>
       
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        {% block content %} {% endblock %}
		</div>
      </div>
    </div>

  </body>
</html>
